package com.tencreat.domain.pt;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.tencreat.common.core.domain.BaseEntity;

import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 现金卷对象 mall_pt_cash_voucher
 *
 * @author tencreat
 * @date 2021-11-08
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_pt_cash_voucher")
public class MallPtCashVoucher extends BaseEntity<MallPtCashVoucher> {
    private static final long serialVersionUID = 1L;


    /**
     * 现金卷id
     */
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 现金卷数值
     */
    @Excel(name = "现金卷数值")
    @ApiModelProperty(value = "现金卷数值")
    @TableField("`cash_voucher_num`")
    private Long cashVoucherNum;


    /**
     * 用户编号
     */
    @Excel(name = "用户编号")
    @ApiModelProperty(value = "用户编号")
    @TableField("`uuid`")
    private Long uuid;


//    /**
//     * 有效期
//     */
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
//    @TableField("`valid_period`")
//    private LocalDateTime validPeriod;


    /**
     * 数量
     */
    @Excel(name = "数量")
    @ApiModelProperty(value = "数量")
    @TableField("`cash_num`")
    private Long cashNum;

    /**
     * 激活状态
     */
    @Excel(name = "激活状态")
    @ApiModelProperty(value = "激活状态 1激活 2未激活")
    @TableField("`activation_status`")
    private Integer activationStatus;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /**
     * 租户ID
     */
    @Excel(name = "租户ID")
    @ApiModelProperty(value = "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
